package com.zhejiangzhengyuan.municipal_common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zhejiangzhengyuan.municipal_common.entity.Action;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhejiangzhengyuan.municipal_common.entity.dto.JurisdictionDto;
import com.zhejiangzhengyuan.municipal_common.entity.vo.JurisdictionVo;
import com.zhejiangzhengyuan.municipal_common.response.ResponseVo;

import java.util.List;

/**
 * 服务API--行为表，提供两种权限比对方式：1、基于权限点；2、基于URL 服务类
 *
 * @author linju
 * @since 2019-11-22
 */
public interface ActionService extends IService<Action> {

  List<Action> findBySubjectIdByUrlAction(Long id, String url);

  IPage<JurisdictionVo> selectJurisdictionVoByAllPage(Long page, Long limit);

  ResponseVo getAllActionVo();

  int insertJurisdiction(JurisdictionDto jurisdictionDto);

  int updateJurisdiction(JurisdictionDto jurisdictionDto);
}
